﻿@model IEnumerable<Everynet.SubExtrasDetail>
@{
    ViewBag.Title = "SubExtrasDetails";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}
     <br />
<u class="headerColor">Sub Extras Details</u>
<p>
   @* @Html.ActionLink("Create New", "CreateSubExtrasDetails")&nbsp;&nbsp;&nbsp;&nbsp;*@
    @Html.ActionLink("Dashboard", "Dashboard", "Admin")
</p>
@using (Html.BeginForm())
{    
    <p>
        Name: @Html.TextBox("SearchString")&nbsp;&nbsp;
        <input type="submit" value="Filter" /></p> 
}
@if (TempData["message"] != null)
{
    <div class="text-success">
        @TempData["message"]
    </div>
}
<table class="table-data" cellpadding="0" cellspacing="0" border="0" width="100%">
    <thead>
        <tr>
            <th align="left" class="header grdIDWidth">
                ID
            </th>
            <th align="left" class="header">
                  Name
            </th>
            <th align="left" class="header grdIDWidth10">
                  Price
            </th>
            <th align="left" class="header grdIDWidth">
                SubExtrasID
            </th>
             <th align="left" class="header grdIDWidth10">
            Public Visible
            </th>
            <th class="grdEditWidth5">
            </th>
           @* <th>
            </th>*@
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model)
        {
            <tr>
                <td>
                    @Html.DisplayFor(modelItem => item.SubExtrasDetailID)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.SubExtrasDetailName)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.SubExtrasDetailPrice)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.SubExtrasID)
                </td>

                 <td>
                @((item.VisiblePublic == null) ? "No" : (item.VisiblePublic == true) ? "Yes" : "No")
                </td>
                <td>@Html.ActionLink("Edit", "EditSubExtrasDetails", new { id = item.SubExtrasDetailID })
                </td>
                @*<td>
                    @Html.ActionLink("Delete", "DeleteSubExtrasDetails", new { id = item.SubExtrasDetailID }, new { onclick = "return confirm('Are you sure you wish to delete?');" })
                </td>*@
            </tr>
        }
    </tbody>
</table>
<script src="@Url.Content("~/Scripts/TableSort.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/tablepaging.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/admin/common.js")" type="text/javascript"></script>
